-- GENERATED SPELL FOR [Anzu] --


function spell0_23035(pUnit, Event) --@Cyclone of Feathers,n/a--
pUnit:FullCastSpellOnTarget(40321,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23035', 8500, 1)
end

function spell1_23035(pUnit, Event) --@Flesh Rip,n/a--
pUnit:FullCastSpellOnTarget(40199,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23035', 15000, 1)
end

function spell2_23035(pUnit, Event) --@Paralyzing Screech,Self--
pUnit:FullCastSpellOnTarget(40184,pUnit)
pUnit:RegisterEvent('Sorts_23035', 11000, 1)
end

function spell3_23035(pUnit, Event) --@Spell Bomb,n/a--
pUnit:FullCastSpellOnTarget(40303,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23035', 8399, 1)
end

function Sorts_23035(pUnit, Event)
local choix_sorts_23035 = math.random(0, 3)
if choix_sorts_23035 == 0 then
pUnit:RegisterEvent('spell0_23035', 1, 1)
end
if choix_sorts_23035 == 1 then
pUnit:RegisterEvent('spell1_23035', 1, 1)
end
if choix_sorts_23035 == 2 then
pUnit:RegisterEvent('spell2_23035', 1, 1)
end
if choix_sorts_23035 == 3 then
pUnit:RegisterEvent('spell3_23035', 1, 1)
end
end

function mob23035_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23035', math.random(1500, 3000), 1)
end

function mob23035_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23035_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23035_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23035, 1, 'mob23035_Action')
RegisterUnitEvent(23035, 2, 'mob23035_Leave')
RegisterUnitEvent(23035, 3, 'mob23035_Kill')
RegisterUnitEvent(23035, 4, 'mob23035_Die')
